

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>HgInit (中文版) &mdash; HgInit 中文版 v1.0 r9 documentation</title>
    <link rel="stylesheet" href="_static/haiku.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <link rel="stylesheet" href="_static/print.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '1.0 r9',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <script type="text/javascript" src="_static/translations.js"></script>
    <script type="text/javascript" src="_static/theme_extras.js"></script>
    <link rel="top" title="HgInit 中文版 v1.0 r9 documentation" href="#" />
    <link rel="next" title="重新审视 Subversion" href="re-education.html" /> 
  </head>
  <body>
      <div class="header"><h1 class="heading"><a href="#">
          <span>HgInit 中文版 v1.0 r9 documentation</span></a></h1>
        <h2 class="heading"><span>HgInit (中文版)</span></h2>
      </div>
      <div class="topnav">
      
        <p>
        <a class="uplink" href="#">Contents</a>
        &#160;&#160;::&#160;&#160;
        <a href="re-education.html">重新审视 Subversion</a>&#160;&#160;»
        </p>

      </div>
      <div class="content">
        
        
  <div class="section" id="hginit">
<h1>HgInit (中文版)<a class="headerlink" href="#hginit" title="永久链接至标题">¶</a></h1>
<div class="section" id="id1">
<h2>译者前言<a class="headerlink" href="#id1" title="永久链接至标题">¶</a></h2>
<p>Mercurial 一款非常优秀的 DVCS, 文档也日趋齐全. 但实际上要掌握 Hg, 手头上有两本书就足够了. 一本就是你正在阅读的 <a class="reference external" href="http://hginit.com">Hg Init: a Mercurial tutorial</a>, 另一本则是官方推荐的大部头 <a class="reference external" href="http://hgbook.red-bean.com/">Mercurial : The Definitive Guide</a>.</p>
<p>Joel Spolsky 在技术写作和表达方面可谓是非常优秀. HgInit 不仅仅是扔给我们几条命令, 它深入浅出, 层层推进, 不断的融入和帮助我们理解 Hg 和 DVCS 的理念. 阅读 HgInit 会有一种同作者一起探索软件开发的复杂性及其应对策略的感觉.</p>
<p>相比其它教程, HgInit 是 Hg 初学者的最佳入门指导. 之后手边再放一本 &#8220;Mercurial : The Definitive Guide&#8221; 供随时查阅, 便可独步水星, 行走江湖了.</p>
</div>
<div class="section" id="id2">
<h2>术语翻译对照表<a class="headerlink" href="#id2" title="永久链接至标题">¶</a></h2>
<table border="1" class="docutils">
<colgroup>
<col width="27%" />
<col width="18%" />
<col width="55%" />
</colgroup>
<thead valign="bottom">
<tr><th class="head">英文术语</th>
<th class="head">中文翻译</th>
<th class="head">解释</th>
</tr>
</thead>
<tbody valign="top">
<tr><td><tt class="docutils literal"><span class="pre">push</span></tt></td>
<td>推送</td>
<td>对应于 <tt class="docutils literal"><span class="pre">hg</span> <span class="pre">push</span></tt> 动作,
用于将变更集同步至 中央 (或其它)
版本库</td>
</tr>
<tr><td><tt class="docutils literal"><span class="pre">pull</span></tt></td>
<td>取出/获取</td>
<td>对应于 <tt class="docutils literal"><span class="pre">hg</span> <span class="pre">pull</span></tt> 动作,
用于将变更集从 中央 (或其它) 库
同步至本地库</td>
</tr>
<tr><td><tt class="docutils literal"><span class="pre">changeset</span></tt></td>
<td>变更集</td>
<td>指对版本库一系列的修改,
包括 添加/删除/修改文件, 以及
修改版本库属性, 配置等操作</td>
</tr>
<tr><td><tt class="docutils literal"><span class="pre">head</span></tt></td>
<td>版本头</td>
<td>处于变更堆栈栈顶的变更集</td>
</tr>
<tr><td><tt class="docutils literal"><span class="pre">tip</span></tt></td>
<td>顶端变更</td>
<td><tt class="docutils literal"><span class="pre">tip</span></tt> 可以理解为 <tt class="docutils literal"><span class="pre">head</span></tt> 的代
号 (标签), 始终指向变更堆栈栈顶</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id3">
<h2>目录索引<a class="headerlink" href="#id3" title="永久链接至标题">¶</a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="re-education.html">重新审视 Subversion</a><ul>
<li class="toctree-l2"><a class="reference internal" href="re-education.html#id1">另一个理念上的重大分歧</a></li>
<li class="toctree-l2"><a class="reference internal" href="re-education.html#id3">最后一个理念上的重大分歧</a></li>
<li class="toctree-l2"><a class="reference internal" href="re-education.html#id4">最后...</a></li>
<li class="toctree-l2"><a class="reference internal" href="re-education.html#next">Next</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="groundup.html">Mercurial 从零开始</a><ul>
<li class="toctree-l2"><a class="reference internal" href="groundup.html#hg-init"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">init</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="groundup.html#hg-add"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">add</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="groundup.html#hg-commit"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">commit</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="groundup.html#hg-log"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">log</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="groundup.html#hg-revert"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">revert</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="groundup.html#hg-status"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">status</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="groundup.html#hg-diff"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">diff</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="groundup.html#hg-remove"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">remove</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="groundup.html#hg-cat"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">cat</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="groundup.html#hg-update"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">update</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="groundup.html#id1">小测验</a></li>
<li class="toctree-l2"><a class="reference internal" href="groundup.html#next">Next</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="setting-up.html">团队协作</a><ul>
<li class="toctree-l2"><a class="reference internal" href="setting-up.html#hg-serve"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">serve</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="setting-up.html#hg-clone"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">clone</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="setting-up.html#hg-push"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">push</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="setting-up.html#hg-outgoing"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">outgoing</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="setting-up.html#hg-merge"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">merge</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="setting-up.html#hg-parent"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">parent</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="setting-up.html#id2">小测验</a></li>
<li class="toctree-l2"><a class="reference internal" href="setting-up.html#next">Next</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="fixing.html">失误补救</a><ul>
<li class="toctree-l2"><a class="reference internal" href="fixing.html#hg-revert"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">revert</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="fixing.html#hg-rollback"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">rollback</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="fixing.html#hg-paths"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">paths</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="fixing.html#hg-parent"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">parent</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="fixing.html#hg-backout"><tt class="docutils literal"><span class="pre">hg</span> <span class="pre">backout</span></tt></a></li>
<li class="toctree-l2"><a class="reference internal" href="fixing.html#id2">小测验</a></li>
<li class="toctree-l2"><a class="reference internal" href="fixing.html#next">Next</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="merging.html">合并</a><ul>
<li class="toctree-l2"><a class="reference internal" href="merging.html#id2">小测验</a></li>
<li class="toctree-l2"><a class="reference internal" href="merging.html#next">Next</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="architecture.html">版本库组织方式</a><ul>
<li class="toctree-l2"><a class="reference internal" href="architecture.html#id2">小测验</a></li>
</ul>
</li>
</ul>
</div>
<ul class="simple">
<li><a class="reference internal" href="search.html"><em>搜索</em></a></li>
</ul>
</div>
</div>


      </div>
      <div class="bottomnav">
      
        <p>
        <a class="uplink" href="#">Contents</a>
        &#160;&#160;::&#160;&#160;
        <a href="re-education.html">重新审视 Subversion</a>&#160;&#160;»
        </p>

      </div>

    <div class="footer">
        &copy; 版权所有 2010, Joel Spolsky, ZH-CN Translators: yospaly, vicalloy.
      使用 <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.6.
    </div>
  </body>
</html>